package cn.ichiva.game.poker.ddz.cardType.impl;

import cn.ichiva.game.poker.ddz.Card;
import cn.ichiva.game.poker.ddz.ICardType;

/**
 * @Description 对子牌
 * @auther Chiva 874460517@qq.com
 * @create 2020-01-13 16:04
 */
public class Type2Card extends CardType {

    int num=2;

    public Type2Card(Card[] cards) {
        super(cards);
    }

    @Override
    public boolean cardTypeCheck() {
        return num == cards.length && cards[0].getIndex() ==  cards[1].getIndex();
    }
}
